home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / elecmail / fido1000.zip / SRC1000.ZIP / FTSC.H < prev    next >
C/C++ Source or Header  |  1993-05-21  |  3KB  |  83 lines

  1.  
  2. #define     MEMERROR       10
  3. #define     FILEERROR      11
  4.  
  5. /*------------------------------------------------------------*/
  6.  
  7. #define     SOFTCR         0x8D
  8. #define     SEENBYSTR      "SEEN-BY"
  9. #define     QMAILSTR       "QM"
  10. #define     SQUISHSTR      "Squish"
  11.  
  12. /*------------------------------------------------------------*/
  13.  
  14. struct _attributes {
  15.    unsigned int private:1;    /* private message flag     */
  16.    unsigned int crash:1;      /* crash mail               */
  17.    unsigned int recvd:1;      /* received by addressee    */
  18.    unsigned int sent:1;       /* message sent             */
  19.    unsigned int attached:1;   /* file attached            */
  20.    unsigned int forward:1;    /* message in transit       */
  21.    unsigned int orphan:1;     /* unknown destination      */
  22.    unsigned int killsent:1;   /* kill after sending       */
  23.    unsigned int local:1;      /* local message            */
  24.    unsigned int hold:1;       /* hold for pickup          */
  25.    unsigned int direct:1;     /* do no gating on this msg */
  26.    unsigned int freq:1;       /* file request             */
  27.    unsigned int rreq:1;       /* return receipt requested */
  28.    unsigned int rcpt:1;       /* return receipt           */
  29.    unsigned int areq:1;       /* audit trail request      */
  30.    unsigned int ureq:1;       /* update file request      */
  31. };
  32.  
  33. typedef struct _dosdate {
  34.    unsigned int day:5;
  35.    unsigned int mon:4;
  36.    unsigned int year:7;
  37.    unsigned int sec:5;
  38.    unsigned int min:6;
  39.    unsigned int hour:5;
  40. } DOSDATE;
  41.  
  42. typedef struct _fidoheader {
  43.    char from[36];                 /* who from,               */
  44.    char to[36];                   /* who to,                 */
  45.    char subj[72];                 /* message subject,        */
  46.    char date[20];                 /* creation date,          */
  47.    int times;                     /* number of times read,   */
  48.    int dest;                      /* destination node,       */
  49.    int orig;                      /* originating node        */
  50.    int cost;                      /* actual cost this msg    */
  51.    int orig_net;                  /* originating net         */
  52.    int dest_net;                  /* destination net         */
  53.    DOSDATE written     ;          /* when it was written     */
  54.    DOSDATE arrived;               /* when it arrived         */
  55.    unsigned int reply;            /* thread to previous msg  */
  56.    struct _attributes attrib;     /* message attributes      */
  57.    int up;                        /* thread to next msg      */
  58. } FIDOHEADER;
  59.  
  60.  
  61. typedef struct  _addrzap {
  62.     unsigned int zone;
  63.     unsigned int net;
  64.     unsigned int node;
  65.     unsigned int point;
  66. } ADDRTYPE;
  67.  
  68.  
  69. /*----------------------------------------------------------------*/
  70. /*              function prototypes                               */
  71.  
  72. int ftsc_addrset(FIDOHEADER *hdr, char *mbuf, ADDRTYPE *t_addr);
  73. int ftsc_read(int n, char *mp, FIDOHEADER *hdr, char *mtext);
  74. int ftsc_write(int n, char *mp, FIDOHEADER *hdr, char *mtext);
  75. int ftsc_delete(int n, char *mp);
  76. int ftsc_append(char *mp, FIDOHEADER *hdr, char *mtext);
  77. int get_ftsc_high(char *mp);
  78. int prn_ftsc_hdr(FIDOHEADER *fhdr);
  79.  
  80. /*------------------------------------------------------------*/
  81.  
  82.  
  83.